import {Input,Select,Button,Cascader,TreeSelect,DatePicker} from 'antd'


const componentItem: any = {
    input:Input,
    password:Input.Password,
    select: Select,
    textarea: Input.TextArea,
    button: Button,
    cascader:Cascader,
    treeSelect:TreeSelect,
    datePicker:DatePicker
}

export function getComponent(param:string) {
    return componentItem[param]
}